<?php
	MYDCONN();
?><div class="title">GestÃo de Materiais e ServiÇos</div>
<table width="100%"  border="0" cellpadding="3" cellspacing="1">
  <tr height="25" bgcolor="#ACB1CC">
    <td width="12%">Referência</td>
    <td width="12%">Tipo</td>
    <td width="50%">Descrição</td>
    <td width="10%">CÓdigo</td>
    <td width="10%">AcÇ&otilde;es</td>
  </tr>
  <?php
  $GET = $GLOBALS['MYD']->db_array("SELECT 
					ccenter_econ.Ref,
					ccenter_econ.TYPE,
					ccenter_econ.Description,
					ccenter_econ.CODE,
					ccenter_econ.REFER
				FROM ccenter_econ"); 
	for ($f = 1; $f <= $GET[0]; $f++) { 
	echo '<tr height="25" bgcolor="'.gridlines($f).'">
		<td><a href="?ViewRequest='.$GET[$f]['Ref'].'">'.$GET[$f]['REFER'].'</a></td>
		<td>'.$GET[$f]['TYPE'].'</td>
		<td>'.$GET[$f]['Description'].'</td>
		<td>'.$GET[$f]['CODE'].'</td>
		<td></td>
		</tr>';
   } ?>
</table>
